<?php defined('G_IN_SYSTEM')or exit('No permission resources.'); ?><!-- 栏目页面顶部 -->
<script>
    function googleTranslateElementInit() {
     
        new google.translate.TranslateElement(
            {
                    //这个参数不起作用，看文章底部更新，翻译面板的语言
                    // pageLanguage: 'en',
                    // locallanguage: 'en',
                //这个是你需要翻译的语言，比如你只需要翻译成越南和英语，这里就只写en,vi
                includedLanguages: 'en,zh-CN,id',
                //选择语言的样式，这个是面板，还有下拉框的样式，具体的记不到了，找不到api~~
                layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
                //自动显示翻译横幅，就是翻译后顶部出现的那个，有点丑，这个属性没有用的话，请看文章底部的其他方法
                autoDisplay: true, 
                //还有些其他参数，由于原插件不再维护，找不到详细api了，将就了，实在不行直接上dom操作
            }, 
            'google_translate_element'//触发按钮的id
        );
    //  console.log(((new google.translate.TranslateElement).h)[A])
    }

</script>
<div id="google_translate_element" style="position:absolute;top:0;right:10px;z-index:2000;opacity:0.7" ></div>	
<script src="https://translate.google.cn/translate_a/element.js?cb=googleTranslateElementInit"></script>
    <header class="header">
        <h1 class="fl"><span><?php echo $webname; ?></span><a href="<?php echo WEB_PATH; ?>/mobile/mobile"><img src="<?php echo G_UPLOAD_PATH; ?>/<?php echo Getlogo(); ?>"/></a></h1>
        <div class="fl u-slogan"></div>
        <div class="fr head-r">
            <a href="<?php echo WEB_PATH; ?>/mobile/user/login" class="z-Member"></a>
            <a id="btnCart" href="<?php echo WEB_PATH; ?>/mobile/cart/cartlist" class="z-shop"></a>
        </div>
    </header> 
    <!-- 栏目导航 -->
    <nav class="g-snav u-nav">
	    <div class="g-snav-lst"><a href="<?php echo WEB_PATH; ?>/mobile/mobile/" <?php if($key=="HomePage" ): ?>class="nav-crt"<?php endif; ?>>HomePage</a> <?php if($key=="HomePage" ): ?><s class="z-arrowh"></s><?php endif; ?></div>
		
	    <div class="g-snav-lst"><a href="<?php echo WEB_PATH; ?>/mobile/mobile/glist" <?php if($key=="ALLCommodity" ): ?>class="nav-crt"<?php endif; ?>>ALLCommodity</a><?php if($key=="ALLCommodity" ): ?><s class="z-arrowh"></s><?php endif; ?></div>
		
	    <div class="g-snav-lst"><a href="<?php echo WEB_PATH; ?>/mobile/mobile/lottery" <?php if($key=="announcement" ): ?>class="nav-crt"<?php endif; ?>>announcement</a><?php if($key=="announcement" ): ?><s class="z-arrowh"></s><?php endif; ?></div>
		
	    <div class="g-snav-lst"><a href="<?php echo WEB_PATH; ?>/mobile/shaidan/" <?php if($key=="DryingSheet" ): ?>class="nav-crt"<?php endif; ?>>DryingSheet</a><?php if($key=="DryingSheet" ): ?><s class="z-arrowh"></s><?php endif; ?></div>
		
	    <div class="g-snav-lst"><a href="<?php echo WEB_PATH; ?>/mobile/autolottery" <?php if($key=="TimeLimit" ): ?>class="nav-crt"<?php endif; ?>>TimeLimit</a><?php if($key=="TimeLimit" ): ?><s class="z-arrowh"></s><?php endif; ?></div>
    </nav>